<?php defined('BASEPATH') OR exit('No direct script access allowed');

/**
 * Links class
 * @author Thiago Braga <thiago@sitesg.com.br>
 * @copyright 2013 SG Comunicação e Design
 * @license http://www.php.net/license/3_01.txt PHP License 3.01
 * @access public
 */
class Links extends Model_Controller {

  /**
   * Carrega a página Links Úteis
   */
  public function index() {
    $this->data->page = 'Links Úteis';
    $this->data->content = 'links/links';
    $this->data->css = array('mods/links');
    $this->data->js = array('mods/links');
    $this->data->links = $this->Links->select_links();
    $this->load->view('base', $this->data);
  }

  /**
   * Carrega a aba Links Úteis
   * @access private
   */
  public function consulta() {
    $this->data->page = 'Links';
    $this->data->content = 'restrito';
    $this->data->tab = 'links/consulta';
    $this->data->css = array('mods/restrito');
    $this->data->js = array('mods/links/admin');
    $this->data->links = $this->Links->select_links();
    $this->load->view('base', $this->data);
  }

}

/* End of file links.php */
/* Location: ./application/controllers/links.php */